package strategies;

import java.util.LinkedList;

import plots.Plot;


/**
 * Strategy with cyclic paths. Ex.: 1 - 3 - 4 - 3 - 1 - 2 - 1 - 6 - 5 - 6 - 1
 * Always return to a point of origin
 * Note: a path of the type 1 - 1 - 3 - 5 - 3 - 1 (the starting plot is twice at the begining of the path)
 * 	means that we also farm the starting plot;
 */
public class PointOfOriginStrategy extends Strategy {
	
	public PointOfOriginStrategy(LinkedList<PlotTarget> path) {
		super(path);
	}
	
	
	public Plot getPointOfOrigin() {
		return path.getFirst().plot;
	}	

	
	@Override
	public PointOfOriginStrategy clone() {
		return new PointOfOriginStrategy(path);
	}
}
